import java.io.*;

public class Test9 {
    public static void main(String[] args) throws IOException {
        byte buf[] = new byte[64];
        System.out.println("Input please:");

        System.in.read(buf);
        String s = new String(buf);

        System.out.println("s = " + s);

        System.out.println("Input please:");
        int d = System.in.read();

        System.out.println("d = " + (char)d);

        System.out.println("Input please:");
        System.in.read(buf, 1, 3);
        s = new String(buf);
        System.out.println("s = " + s);
    }
}
